package net.jiastudy.biz.enums;

import com.baomidou.mybatisplus.enums.IEnum;

import java.io.Serializable;

public enum TaskProgress implements IEnum {
    A(1, "完全完成100%"), B(2, "完成80%~99%"), C(3, "完成60%~79%"), D(4, "完成小于60%"), E(5, "完成0%");
    private int value;
    private String desc;

    TaskProgress(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Serializable getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }
}
